﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using mBlog.Core.Models;

namespace mBlog.Core.Services
{
    public interface ITagService
    {
        Tag Single(long id);
        Tag Single(string tagUrlName);

        void Update(Tag tag);
        void Delete(long id);

        IList<Tag> Get(string tagName);
        IList<Tag> Get(int? page, int itemsPerpage);

        int Count();
        int GetPostTotalUnderTag(string tagUrlName);
    }
}
